/*    */ package com.engine;
/*    */ 
/*    */ public class PlayVoiceRule
/*    */ {
/*    */   ConvertNumberToText cntt;
/*  6 */   final String voicePath = "voice/";
/*  7 */   final String voiceExt = ".wav";
/*    */   int counterNo;
/*    */   int queue;
/* 10 */   String fileAntrian = "antrian";
/*    */ 
/*    */   public PlayVoiceRule(int counterNo, int queue, int idxService, IServiceKode iService, String format) {
/* 13 */     this.cntt = new ConvertNumberToText(format);
/* 14 */     this.counterNo = counterNo;
/* 15 */     this.queue = queue;
/* 16 */     this.fileAntrian += iService.serviceCode(idxService - 1);
/*    */   }
/*    */ 
/*    */   public void run()
/*    */   {
/* 21 */     playVoice();
/*    */   }
/*    */ 
/*    */   public void playVoice() {
/* 25 */     String strQueue = this.cntt.convert1(this.queue);
/* 26 */     String voice = "voice/" + this.fileAntrian + ".wav";
/* 27 */     new AePlayWave(voice).run();
/* 28 */     String[] arrQueue = strQueue.split("\\ ");
/* 29 */     for (int i = 0; i < arrQueue.length; i++)
/*    */     {
/* 31 */       voice = "voice/" + arrQueue[i] + ".wav";
/* 32 */       new AePlayWave(voice).run();
/*    */     }
/* 34 */     voice = "voice/Teller" + this.counterNo + ".wav";
/* 35 */     new AePlayWave(voice).run();
/*    */   }
/*    */ }

/* Location:           F:\16 2\SQ.jar
 * Qualified Name:     com.engine.PlayVoiceRule
 * JD-Core Version:    0.6.0
 */